#include<reg51.h>
sbit k1=P1^0;
sbit k2=P1^1;
void  delay(int i)
{
  int k;
  for(k=0;k<1;k++);
  }
  void main()
{
  while(1)
  {
   if(k1==1&&k2==0)
   {
    P1=0xf3;
	delay(30000);
	P1=0xff;
	delay(30000);
	}
	if(k1==0&&k2==1)
	{
	P1=0xcf;
	delay(30000);
	P1=0xff;
	delay(30000);
	}
  }
}
